Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix blank screen after notification request #918

Merged
merged 2 commits into from
Sep 1, 2023

Conversation

zatteo
Copy link
Contributor

@zatteo zatteo commented Sep 1, 2023

refactor: Create a wrapper for useSecureBackgroundSplashScreen and move it
fix: Solve blank screen when asking notification permission during webview loading

move it

This wrapper is moved before <App /> because in a next commit I will
add a component before <App /> which need
useSecureBackgroundSplashScreen to have been executed.
…bview loading

On Android, when we ask for notification permission, app goes to background. This was causing HttpServer to stop (which is an intented behavior futurepress/react-native-static-server#39), but it was stopped during Home webview loading leading to a blank screen.

So now, we ask for notification permission before loading a webview.
@zatteo zatteo merged commit 4752949 into master Sep 1, 2023
1 check passed
@zatteo zatteo deleted the fix/blank-screen-after-notification-reques branch September 1, 2023 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants